

package com.lh.api.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Date 2020/5/18 0013 14:40
 * @Author GaoZien
 * @Desc 加入购物车表单
 */
@Data
@ApiModel(value = "加入购物车表单")
public class ShopCartForm {

    @ApiModelProperty(value = "商品id",required = true)
    @NotNull(message = "sid is required")
    private Long sid;

    @ApiModelProperty(value = "加入购物车数量",required = true)
    @NotNull(message = "num is required")
    private Integer num;

}
